package kaoshi.entity;

import kaoshi.service.impl.personServiceImpl;

public class person {
    private int id;
    private String name;
    private String sex;
    private int age;
    private String rank;
    private String bumeng;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getBumeng() {
        return bumeng;
    }

    public void setBumeng(String bumeng) {
        this.bumeng = bumeng;
    }

    public person(){}

    public person(String name,String sex,int age,String rank,String bumeng){
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.rank = rank;
        this.bumeng = bumeng;
    }
    public person(int id,String name,String sex,int age,String rank,String bumeng){
        this.id=id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.rank = rank;
        this.bumeng = bumeng;
    }

    @Override
    public String toString() {
       return "{\"id\":"+id+",\"name\":\""+name+"\",\"sex\":\""+sex+"\",\"age\":\""+age+"\",\"rank\":\""+rank+"\",\"bumeng\":\""+bumeng+"\"}";
    }
}
